package com.fz.us.admin.company.service.impl;

import com.fz.us.admin.base.dao.BaseDao;
import com.fz.us.admin.base.service.impl.BaseServiceImpl;
import com.fz.us.admin.company.dao.TaskFlowDao;
import com.fz.us.admin.company.entity.StepBrief;
import com.fz.us.admin.company.entity.TaskEntity;
import com.fz.us.admin.company.entity.TaskFlow;
import com.fz.us.admin.company.entity.User;
import com.fz.us.admin.company.service.TaskFlowService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


/**
 * Service实现类 - 
 * ============================================================================
 * 版权所有 2013
 * ----------------------------------------------------------------------------
 * 
 * @author 
 * 
 * @version 0.1 2011-6-13
 */

@Service
public class TaskFlowServiceImpl extends BaseServiceImpl<TaskFlow, String> implements TaskFlowService {
	
	@Resource
    TaskFlowDao taskFlowDao;

	@Override
	public BaseDao<TaskFlow, String> getBaseDao() {
		return taskFlowDao;
	}

    @Override
    public List<User> findUsersByTaskFlow(String taskId) {
        return taskFlowDao.findUsersByTaskFlow(taskId);
    }

    @Override
    public List<TaskFlow> getTaskFlowByCreatetime() {
        return taskFlowDao.getTaskFlowByCreatetime();
    }

    @Override
    public List<TaskFlow> getInfoByTaskEntity(TaskEntity taskEntity) {
        return taskFlowDao.getInfoByTaskEntity(taskEntity);
    }

    @Override
    public List<TaskFlow> getInfoByTaskStepBrief(TaskEntity taskEntity, StepBrief stepBrief) {
        return taskFlowDao.getInfoByTaskStepBrief(taskEntity, stepBrief);
    }

    @Override
    public List<TaskFlow> getInfoByBack(TaskEntity taskEntity, int count) {
        return taskFlowDao.getInfoByBack(taskEntity, count);
    }
}